package com.sgolub.commanndsonline.service.sec;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sgolub.commanndsonline.dao.sec.SecRoleDAO;
import com.sgolub.commanndsonline.domain.sec.SecRole;

@Service
public class SecRoleServiceImpl implements SecRoleService {

	@Autowired
	private SecRoleDAO secRoleDAO;

	@Transactional
	public SecRole get(Integer id) {
		return secRoleDAO.get(id);
	}

    @Transactional
	public void add(SecRole secRole) {
    	secRoleDAO.add(secRole);

	}

    @Transactional
	public void update(SecRole secRole) {
    	secRoleDAO.update(secRole);
	}

    @Transactional
	public void remove(Integer id) {
    	secRoleDAO.remove(id);
	}

    @Transactional
	public List<SecRole> list() {
		return secRoleDAO.list();
	}


}
